package com.ruoyi.purchase.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单对象 purchase_orders
 *
 * @author ruoyi
 * @date 2025-10-20
 */
public class PurchaseOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 采购订单号 */
    @Excel(name = "采购订单号")
    private String poId;

    /** 采购组织 */
    @Excel(name = "采购组织")
    private String poOrg;

    /** 订单数量 */
    @Excel(name = "订单数量")
    private Long totalAmount;

    /** 交货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long poStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdPerson;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 采购订单信息 */
    private List<PurchaseOrdersDetails> purchaseOrdersDetailsList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPoId(String poId)
    {
        this.poId = poId;
    }

    public String getPoId()
    {
        return poId;
    }

    public void setPoOrg(String poOrg)
    {
        this.poOrg = poOrg;
    }

    public String getPoOrg()
    {
        return poOrg;
    }

    public void setTotalAmount(Long totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public Long getTotalAmount()
    {
        return totalAmount;
    }

    public void setDeliveryDate(Date deliveryDate)
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate()
    {
        return deliveryDate;
    }

    public void setPoStatus(Long poStatus)
    {
        this.poStatus = poStatus;
    }

    public Long getPoStatus()
    {
        return poStatus;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setCreatedPerson(String createdPerson)
    {
        this.createdPerson = createdPerson;
    }

    public String getCreatedPerson()
    {
        return createdPerson;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public List<PurchaseOrdersDetails> getPurchaseOrdersDetailsList()
    {
        return purchaseOrdersDetailsList;
    }

    public void setPurchaseOrdersDetailsList(List<PurchaseOrdersDetails> purchaseOrdersDetailsList)
    {
        this.purchaseOrdersDetailsList = purchaseOrdersDetailsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("poId", getPoId())
                .append("poOrg", getPoOrg())
                .append("totalAmount", getTotalAmount())
                .append("deliveryDate", getDeliveryDate())
                .append("poStatus", getPoStatus())
                .append("createdAt", getCreatedAt())
                .append("createdPerson", getCreatedPerson())
                .append("updatedAt", getUpdatedAt())
                .append("purchaseOrdersDetailsList", getPurchaseOrdersDetailsList())
                .toString();
    }
}
